package models

import (
	"github.com/goravel/framework/database/orm"
)

type ParkingState struct {
	orm.Model
	TicketID  uint    `gorm:"column:ticket_id" form:"ticket_id" json:"ticket_id"`
	ParkingID uint    `gorm:"column:parking_id" form:"parking_id" json:"parking_id"`
	State     string  `gorm:"column:state;comment:空闲，占用" form:"state" json:"state"`
	Parking   Parking `gorm:"foreignKey:ID;references:parking_id" form:"parking" json:"parking"`
	orm.SoftDeletes
}
